<include file="Member:header"/>
<div id="content">
    <div class="crumbs_nav mb">
        <span class="icon">当前位置：</span>
        <a href="/">首页</a>
        &gt; <a href="/">会员中心</a>
        &gt; 个人资料
    </div>
    <include file="Member:b_menu"/>
    <div class="w730 fl">
        <div class="cui-box5">
            <div class="title">
                <h2 class="tith wz2">我的订单</h2>
            </div>
            <!--end title-->
            <div class="cbox mh350 pa_tb10">
                <div class="w720 m">
                    <h3 class="orange mb">您好，共找到{$datalist|count}个订单：</h3>
                    <!--user_tbox start-->
                    <div class="user_tbox">
                        <div class="tit-h">
                            <table class="car_title" width="100%">
                                <tr>
                                    <th width="270">
                                        宝贝信息
                                    </th>
                                    <th width="100">
                                        交易状态
                                    </th>
                                    <th width="230">
                                        收货人信息
                                    </th>
                                    <th>
                                        评价
                                    </th>
                                </tr>
                            </table>
                        </div>
                        <volist name="datalist" id="vo">
                            <div class="order_no">
                                <span>订单号：{$vo.code}</span>
                                <span>订单总金额：<em class="pice2 ">
                                        <s class="s1 bk_element">
                                        </s>{$vo.final_fee}
                                    </em></span>
                                付款方式：支付宝 <span>下单时间：{$vo.happen|date="y-m-d H:i:s",###} </span>
                            </div>
                            <table cellspacing="0" cellpadding="0" class="order-table mb ml" style="width:700px;">
                                <tr>
                                    <td colspan="5" height="10">
                                    </td>
                                </tr>
                                <volist name="vo.good" id="gvo" key="gi">
                                    <tr class="uncod <eq name="gi" value="1">
 border_line
                                    </eq>">
                                    <td width="240">
                                        <a title="" target="_blank" href="{:U('Good/show?good_id='.$gvo['good_id'])}" class="blue">{$gvo['good_img']|advstr='90px','90px',$srcpre.'_thumbs/','class:itempic'}
                                            {$gvo.good_name}</a>
                                        <br/>
                                        价格：{$gvo.good_price}元
                                        <br/>
                                        数量：{$gvo.good_num}件 
                                        <br/>
                                        {$gvo.good_attr}
                                    </td>
                                    <td width="100" class="s-del">
                                        {$sets['order_progress'][$vo['progress']]}
                                        <br/>
                                        <eq name="vo.progress" value="1">
                                            <a class="blue" href="{:U('Pay/go?orderform_id='.$vo['orderform_id'])}">[去付款]</a>
                                        </eq>
                                    </td>
                                    <td width="230" align="left">
                                        {$vo['consignee']} 	  {$vo['zipcode']} 
                                        <br/>
                                        {$vo['consignee_addr']}
                                        <br/>
                                        {$vo['consignee_phone']}
                                        <br/>
                                        {$vo['consignee_tel']}
                                    </td>
                                    <td class="s-del">
                                        <eq name="vo['progress']" value="4">
                                            <eq name="gvo.is_comment" value="0">
                                                <a href="#nogo" onclick="goComment({ 'orderform_id':{$gvo['orderform_id']},'good_id':{$gvo['good_id']} })" class="red">等待评价</a>
                                                <else/><a href="{:U('Member/comment?comment_id=1&orderform_id='.$gvo['orderform_id'].'&good_id='.$gvo['good_id'])}" target="_blank" class="blue">已评价</a>
                                            </eq>
                                            <else/>-
                                        </eq>
                                    </td>
                                </tr>
                                </volist>
                            </table>
                        </volist>
                        <div class="user_page mr ml">
                            <notempty name="datalist">
                                {$page}
                            </notempty>
                        </div>
                        <!--end user_page-->
                    </div>
                    <!--user_tbox end-->
                </div>
                <!--end w720-->
            </div>
            <!--end cbox-->
        </div>
        <!--end cui-box5-->
    </div>
    <!--end w220-->
    <div class="clear">
    </div>
</div>
<script src="../Public/Js/jquery.artDialog.basic.js" type="text/javascript">
</script>
<script>
	function goComment(mdata){
		var myDialog = art.dialog({
			id:'comment_mbox',
			//lock:true,
			//show:false
			});
		jQuery.ajax({
		    url: '{:U('Member/comment')}',
			data:mdata,
		    success: function (data) {
				//$('#comment_obox').html(data);
				 myDialog.content(data);
		        myDialog.close();// 填充对话框内容
		        $('.aui_header').hide();
		    }
		});
	}
	//function dis
	function subComment(mdata){
		return false;
	}
</script>
<div id="comment_obox">
</div>
<include file="Layout:footer"/>